/**
 * 
 */
package org.myontology.controller.selectors;

import org.myontology.controller.AttributeHolder;
import org.myontology.controller.Selector;
import org.myontology.users.Login;

/**
 * @author hacklm
 *
 */
public class Admin extends Selector {

	/* (non-Javadoc)
	 * @see org.myontology.controller.Selector#check(org.myontology.controller.AttributeHolder)
	 */
	@Override
	protected boolean check(AttributeHolder attributes) {
		
		return   (Login.ROLE.getValue(attributes)!=null && Login.ROLE.getValue(attributes).equals(Login.ADMIN));
	}

}
